#include "gdn/Image.h"

#include "gdn/Utility.h"

namespace gdn
{
	bool Image::LoadFromFile( const std::string& filename )
	{
		return image.LoadFromFile( filename );
	}

	Vector2< unsigned int > Image::GetSize() const
	{
		return ConvertToGdn< unsigned int >( sf::Vector2< unsigned int >( image.GetWidth(), image.GetHeight() ) );
	}

	Color Image::GetPixel( unsigned int x, unsigned int y ) const
	{
		return ConvertToGdn( image.GetPixel( x, y ) );
	}
}
